package cn.edu.xmu.restfuldemo.model;
import  cn.edu.xmu.restfuldemo.model.OrderItem;

import lombok.Data;

@Data
public class OrderItemRetVo {
    private Integer skuId;
    private Integer orderId;
    private String name;
    private Integer quantity;
    private Integer price;
    private Integer discount;
    private Integer couponActId;
    private Integer beSharedId;

    public OrderItemRetVo(OrderItem orderItem){
        this.skuId=orderItem.getGoodsSkuId();
        this.orderId=orderItem.getOrderId();
        this.name=orderItem.getName();
        this.quantity=orderItem.getQuantity();
        this.price=orderItem.getPrice();
        this.discount=orderItem.getDiscount();
        this.couponActId=orderItem.getCouponActivityId();
        this.beSharedId=orderItem.getBeSharedId();
    }
}
